package com.my.yc.bean;

// code=1,msg="OK",data=[1,2];
/*
    JSON格式
    { code:1, msg:'OK', data:[1,2]}
 */
public class Result {
    // 结果码 0失败, 1成功
    int code;
    // 结果描述信息
    String msg;
    // 数据
    Object data;

    public Result(int code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
